import request from "@/axios/request";

// 4.15获取发布中楼盘房源
export function getReleaseCommunity(data) {
  return request({
    url: "/zhixuan/api/v1/community/brandHouseList",
    method: "post",
    data
  });
}
// 4.2创建楼盘房源
export function createBuild(data) {
  return request({
    url: "/zhixuan/api/v1/building/createBuiHouse",
    method: "post",
    data
  });
}
// 4.3 创建联合办公社区
export function createCommunit(data) {
  return request({
    url: "/zhixuan/api/v1/community/createHouse",
    method: "post",
    data
  });
}
// 4.4模糊匹配楼盘
export function getBuiListByKeyword(data) {
  return request({
    url: "/zhixuan/api/v1/building/getBuiListByKeyword",
    method: "post",
    data
  });
}
// 4.5模糊匹配联合办公品牌
export function getBrandList(data) {
  return request({
    url: "/zhixuan/api/v1/brand/getBrandList",
    method: "post",
    data
  });
}
// 4.6模糊匹配联合办公社区
export function getCommunityList(data) {
  return request({
    url: "/zhixuan/api/v1/community/getCommunityList",
    method: "post",
    data
  });
}
// 4.7 根据楼盘获取楼号楼层房号信息
export function getBuildingFloorInfo(data) {
  return request({
    url: "/zhixuan/api/v1/building/getBuildingFloorInfo",
    method: "post",
    data
  });
}
// 4.8 编辑楼盘房源
export function updateBuiHouse(data) {
  return request({
    url: "/zhixuan/api/v1/building/updateBuiHouse",
    method: "post",
    data
  });
}
// 4.9 删除楼盘房源
export function delBuildingHouse(data) {
  return request({
    url: "/zhixuan/api/v1/building/delBuiHouse",
    method: "post",
    data
  });
}
// 4.10 查看社区 所有房源详情
export function getHouseList(data) {
  return request({
    url: "/zhixuan/api/v1/community/getHouseList",
    method: "post",
    data
  });
}
// 4.11 查看楼盘房源详情
export function viewBuiHouse(data) {
  return request({
    url: "/zhixuan/api/v1/building/viewBuiHouse",
    method: "post",
    data
  });
}
// 4.12 删除社区房源
export function houseDelete(data) {
  return request({
    url: "/zhixuan/api/v1/community/houseDelete",
    method: "post",
    data
  });
}
// 4.16获取发布中楼盘房源
export function getReleaseHouse(data) {
  return request({
    url: "/zhixuan/api/v1/building/findByUserHouseList",
    method: "post",
    data
  });
}
// 4.18 编辑联合办公房源-开放式工位、办公室、路演场
export function updateHouseList(data) {
  return request({
    url: "/zhixuan/api/v1/community/updateHouseList",
    method: "post",
    data
  });
}
// 4.19 下架发布中楼盘房源
export function fallBuiHouse(data) {
  return request({
    url: "/zhixuan/api/v1/building/fallBuiHouse",
    method: "post",
    data
  });
}
// 4.20 是否推荐楼盘房源
export function recommendHouse(data) {
  return request({
    url: "/zhixuan/api/v1/user/opt/recommendHouse",
    method: "post",
    data
  });
}
// 4.22 是否推荐楼盘房源
export function countRecommend(params) {
  return request({
    url: "/zhixuan/api/v1/user/opt/countRecommend",
    method: "get",
    params
  });
}
// 4.23 刷新房源
export function refreshHouse(data) {
  return request({
    url: "/zhixuan/api/v1/building/refreshHouse",
    method: "post",
    data
  });
}
// 4.24 获取当天刷新房源次数
export function getRefreshNum(params) {
  return request({
    url: "/zhixuan/api/v1/user/opt/getRefreshNum",
    method: "get",
    params
  });
}
// 4.24 获取当天刷新房源次数
export function getCountUserHouse(params) {
  return request({
    url: "/zhixuan/api/v1/building/countUserHouse",
    method: "get",
    params
  });
}

